import React from 'react';
import { HashRouter as Router,Route} from 'react-router-dom';

//登录页
import Login from './components/login';
//首页
import Home from './components/home';
//业务流程
import Flow from './components/flow';
//分拣中心收售表
import PackageForm from './components/report_forms/packageForm.js';
//服务亭收售表
import ServiceHouseForm from './components/report_forms/serviceHouseForm.js';
//库存报表
import StockForm from './components/report_forms/stockForm.js';
//分站收售表
import SubstationForm from './components/report_forms/substationForm.js';
//分拣中心销售明细
import Seller from './components/report_detail/serviceSeller/index.js';
//分拣中心收货明细
import Deliverygoods from './components/report_detail/packageReceive/index.js';
import View from './components/report_detail/serviceSeller/view.js'
import Track from './components/report_detail/serviceSeller/track.js'
import Viewo from './components/report_detail/packageReceive/viewo'

// 服务亭收货表
import ServiceHouseReceive from './components/report_detail/serviceHouseReceive/index.js';
// 服务亭收货查看
import ViewReceive from './components/report_detail/serviceHouseReceive/view.js';
// 服务亭交货
import ServiceHouseSend from './components/report_detail/serviceHouseSend/index.js';
// 服务亭交货轨迹
import TrackSend from './components/report_detail/serviceHouseSend/trackSend.js';
// 服务亭交货查看
import ViewSend from './components/report_detail/serviceHouseSend/viewSend.js';

class App extends React.Component {
	render(){
		return(
			<Router>
			    <div className='pageall wrap' style={{height: '100%'}}>
					<Route exact path="/" component={Home} />
					<Route path="/home" component={Home} />
					<Route path="/flow" component={Flow} />
					<Route path="/login" component={Login} />
					<Route path="/packageForm" component={PackageForm} />
					<Route path="/serviceHouseForm" component={ServiceHouseForm} />
					<Route path="/stockForm" component={StockForm} />
					<Route path="/substationForm" component={SubstationForm} />
					<Route path="/track/:orderNum" component={Track} />
					<Route path="/view/:orderNum" component={View} />
					<Route path="/seller" component={Seller} />
					<Route path="/deliverygoods" component={Deliverygoods} />
					<Route path="/viewo/:orderNum" component={Viewo} />
					<Route path="/serviceHouseReceive" component={ServiceHouseReceive} />
					<Route path="/viewReceive/:orderNum" component={ViewReceive} />
					<Route path="/serviceHouseSend" component={ServiceHouseSend} />
					<Route path="/viewSend/:orderNum" component={ViewSend} />
					<Route path="/trackSend/:orderNum" component={TrackSend} />
				</div>
			</Router>
		)
	}

}
export default App;